import http from "@/server/http";

//活动报名列表
export const queryGroupActivityList = (params) => {
    return http({
        url: "/user/group_activity/list/index",
        method: "POST",
        data: params,
    })
}

//报名 
export const submitSignup = (params) => {
    return http({
        url: "/user/group_activity/list/sign_up",
        method: "POST",
        data: params,
    })
}

//详情 
export const queryGroupActivityDetails = (params) => {
    return http({
        url: "/user/group_activity/list/info",
        method: "POST",
        data: params,
    })
}

//历史记录 
export const queryGroupActivityHistory = (params) => {
    return http({
        url: "/user/group_activity/log/index",
        method: "POST",
        data: params,
    })
}

//签到 
export const querySignIn = (params) => {
    return http({
        url: "/user/group_activity/log/sign",
        method: "POST",
        data: params,
    })
}

//申请请假 
export const applyVacate = (params) => {
    return http({
        url: "/user/group_activity/log/ask_for_leave",
        method: "POST",
        data: params,
    })
}

//历史详情 
export const queryHistoryDetails = (params) => {
    return http({
        url: "/user/group_activity/log/info",
        method: "POST",
        data: params,
    })
}

//用户反馈列表
export const queryCommentList = (params) => {
    return http({
        url: "/admin/group_activity/published/comment_list",
        method: "POST",
        data: params,
    })
}

//用户评论 
export const submitComment = (params) => {
    return http({
        url: "/user/group_activity/log/comment",
        method: "POST",
        data: params,
    })
}

//活动所属类型
export const queryActivityType = (params) => {
    return http({
        url: "/admin/group_activity/publish_task/type_selector",
        method: "POST",
        data: params,
    })
}

//发布人选择器 
export const queryPublisherSelector = (params) => {
    return http({
        url: "/admin/group_activity/published/publisher_selector",
        method: "POST",
        data: params,
    })
}

//提交团体答案 
export const subGroupActivityResult = (params) => {
    return http({
        url: "/user/group_activity/list/submit_task_evaluation_results",
        method: "POST",
        data: params,
    })
}

//测评结果
export const queryGroupActivityResult = (params) => {
    return http({
        url: "/admin/group_activity/published/user_result",
        method: "POST",
        data: params,
    })
}

//测评结果题目和答案
export const queryAnswerSituation = (params) => {
    return http({
        url: "/admin/group_activity/published/user_result2",
        method: "POST",
        data: params,
    })
}